package com.blog.blogpro.common.dto;

/**
 * Class Name: ResultDto
 * Description:
 *
 * @author SC
 */
public class ResultDto<T> {

    private static final long serialVersionUID = 1L;
    private String code;
    private String message;
    private T data;
    private Object[] args;
    private boolean linkDetail;


    /**
     * ResultDto Constructor
     */
    public ResultDto() {
        //for mybatis
    }


    /**
     * ResultDto Constructor
     *
     * @param code
     * @param message
     * @param data
     */
    public ResultDto(String code, String message, T data) {
        this.code = code;
        this.message = message;
        this.data = data;
    }

    /**
     * ResultDto Constructor
     *
     * @param code
     * @param message
     * @param data
     * @param args
     */
    public ResultDto(String code, String message, T data, Object... args) {
        super();
        this.code = code;
        this.message = message;
        this.data = data;
        this.args = args;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public Object[] getArgs() {
        return args;
    }

    public void setArgs(Object[] args) {
        this.args = args;
    }

    public void setLinkDetail(boolean linkDetail) {
        this.linkDetail = linkDetail;
    }

    public boolean isLinkDetail() {
        return linkDetail;
    }


}
